﻿package top.yangyitao.util;


import top.yangyitao.model.RegisterCode;

/**
 * url 服务机上项目的路径
 * @author Shinelon
 *
 */
public class RegisterEmailUtil {
	public static void sendRegisterEmail(String email,RegisterCode registerCode) throws Exception {
		String url = "http://www.yangyitao.top/FiveChess/";
		String action = "emailRegister.action?";
		url += action+"userName="+registerCode.getUserName()+"&code="+registerCode.getRegisterCode();
		String content ="您好！<br>以下为您在yangyitao.top注册账号的验证链接，请点击该链接完成验证...<br><hr><a href='"+url+"'>验证链接</a><br><hr>如果您并未请求此注册链接，请不要点击它!<br>谢谢!<br>by yangyitao.top";
		EmailManager.sendEmail(email, "注册验证", content);
	}
}
